package com.fita.admin.service.authority;

import com.fita.admin.service.DataService;
import com.fita.entity.authority.Resource;
import com.fita.entity.principal.Principal;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author Ysy
 *
 */
public interface ResourceService extends DataService<Resource> {
    
    /**
     * list resources'name mapped by type
     * 
     * @param user
     * @return
     */
    public Map<String, List<String>> list(Principal principal);
    
}
